package com.ucloud.service.impl;

import com.ucloud.dao.DepartmentMapper;
import com.ucloud.domain.Department;
import com.ucloud.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service("departmentService")
public class DepartmentServiceImpl implements DepartmentService {
@Autowired
    DepartmentMapper departmentMapper;
    @Override
    public List<Department> getDepts() {
        List<Department> list=departmentMapper.selectByExample(null);
        return list;
    }
}
